package com.ls.blog.vo.params;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ls.blog.vo.CategoryRecord;
import com.ls.blog.vo.CategoryVo;
import com.ls.blog.vo.TagVo;
import lombok.Data;

import java.util.List;

/**
 * @program: myblog
 * @author: lishun
 * @create: 2021-07-11 11:31
 **/
@Data
public class ArticleParam {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 文章主体
     */
    private ArticleBodyParam body;

    /**
     *  分类
     */
    private CategoryRecord category;

    /**
     * 摘要
     */
    private String summary;

    /**
     * 标签
     */
    private List<TagVo> tags;

    private String title;

    /**
     * 权重
     */
    private Integer weight;
}